package com.wjjun.base.widget.smartrefresh;

import android.content.Context;
import android.util.AttributeSet;


import com.scwang.smart.refresh.header.ClassicsHeader;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * @author : sklyand
 * @email :
 * @time : 2020/1/10 15:13
 * @describe ：
 */
public class OneClassicsHeader extends ClassicsHeader {
    public OneClassicsHeader(Context context) {
        super(context);
        setUp();
    }

    public OneClassicsHeader(Context context, AttributeSet attrs) {
        super(context, attrs);
        setUp();
    }

    public OneClassicsHeader(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs);
        setUp();
    }
    private void setUp(){
        setLastUpdateTime(new Date());
        REFRESH_HEADER_PULLING = "下拉可以刷新";
        REFRESH_HEADER_REFRESHING = "正在刷新";
        REFRESH_HEADER_RELEASE = "松开立即刷新";
        setLastUpdateTime(new Date());
        setTimeFormat(new SimpleDateFormat("最后更新：今天 HH:mm", Locale.CHINA));
    }
}
